<template>
  <view class="search">
      <u-search @search="Search" :maxlength="20" height="75" bg-color="#ffffff"  border-color="#f2f2f2" :show-action="false"  search-icon-color="#ff9d9d" placeholder="请输入你所需要的灯具 . . ."  
      v-model="keyword"></u-search>
  </view>

</template>

<script setup>
  import {
    ref
  } from 'vue'
  
const keyword = ref()
  
function Search(value){
    uni.navigateTo({
      url: `/subPack/SearchList/SearchList?value=${value}`
    })
    keyword.value = ""
}
</script>
<style lang="scss">
  .search{
    height: 130rpx;
    background-color: #ffffff;
    line-height: 130rpx;
    padding: 0 20rpx;
  }
</style>